home *** CD-ROM | disk | FTP | other *** search
- Path: dawn.mmm.com!news
- From: kjhopps@mmm.com (Kevin J Hopps)
- Newsgroups: comp.lang.c++
- Subject: Re: Call to new fails
- Date: 8 Mar 1996 13:42:01 GMT
- Organization: 3M - St. Paul, MN 55144-1000 US
- Message-ID: <4hpdf9$k1d@dawn.mmm.com>
- References: <4hmp5h$62d@newsbf02.news.aol.com>
- Reply-To: kjhopps@mmm.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- TheWzrdOz (thewzrdoz@aol.com) wrote:
- > I've a call to new that fails. I've checked and there is plenty of memory
- > available for the call. I have cout statements before and after the call,
- > and another in the classes CTOR, and I don't see the output from the CTOR.
- > This is a DOS based product, so I can't debug it. Help! Why would the
- > new fail?
-
- If the heap gets corrupted, subsequent calls to new or delete can cause
- unpredictable results. Your problem might be in code executed [much]
- earlier than the call that fails.
- --
- Kevin J. Hopps e-mail: kjhopps@mmm.com
- 3M Company phone: (612) 737-4643
- 3M Center, Bldg. 235-2D-57 fax: (612) 737-2700
- St. Paul, MN 55144-1000 Opinions are my own. I don't speak for 3M.
- But 3M speaks for me -- I did not write the following line:
-
- Opinions expressed herein are my own and may not represent those of 3M.
-